package com.qqt.csr.common.config;

import org.redisson.codec.JsonJacksonCodec;
import org.redisson.config.Config;
import org.redisson.spring.starter.RedissonAutoConfigurationCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

// @Configuration
public class RedissonConfiguration{

    @Bean
    public RedissonAutoConfigurationCustomizer customizer() {
        return new RedissonAutoConfigurationCustomizer() {
            @Override
            public void customize(Config configuration) {
                configuration.setCodec(new JsonJacksonCodec());
            }
        };
    }
}
